package com.joker.product.service.impl;

import com.joker.product.domain.PmsAttrAttrGroupRelation;
import com.joker.product.mapper.PmsAttrAttrGroupRelationMapper;
import com.joker.product.service.IPmsAttrAttrGroupRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 属性&属性分组关联Service业务层处理
 *
 * @author joker
 * @date 2024-12-19
 */
@Service
public class PmsAttrAttrGroupRelationServiceImpl implements IPmsAttrAttrGroupRelationService
{
    @Autowired
    private PmsAttrAttrGroupRelationMapper pmsAttrAttrGroupRelationMapper;

    /**
     * 查询属性&属性分组关联
     *
     * @param id 属性&属性分组关联主键
     * @return 属性&属性分组关联
     */
    @Override
    public PmsAttrAttrGroupRelation selectPmsAttrAttrGroupRelationById(Long id)
    {
        return pmsAttrAttrGroupRelationMapper.selectPmsAttrAttrGroupRelationById(id);
    }

    /**
     * 查询属性&属性分组关联列表
     *
     * @param pmsAttrAttrgroupRelation 属性&属性分组关联
     * @return 属性&属性分组关联
     */
    @Override
    public List<PmsAttrAttrGroupRelation> selectPmsAttrAttrGroupRelationList(PmsAttrAttrGroupRelation pmsAttrAttrgroupRelation)
    {
        return pmsAttrAttrGroupRelationMapper.selectPmsAttrAttrGroupRelationList(pmsAttrAttrgroupRelation);
    }

    /**
     * 新增属性&属性分组关联
     *
     * @param pmsAttrAttrgroupRelation 属性&属性分组关联
     * @return 结果
     */
    @Override
    public int insertPmsAttrAttrGroupRelation(PmsAttrAttrGroupRelation pmsAttrAttrgroupRelation)
    {
        return pmsAttrAttrGroupRelationMapper.insertPmsAttrAttrGroupRelation(pmsAttrAttrgroupRelation);
    }

    /**
     * 修改属性&属性分组关联
     *
     * @param pmsAttrAttrgroupRelation 属性&属性分组关联
     * @return 结果
     */
    @Override
    public int updatePmsAttrAttrGroupRelation(PmsAttrAttrGroupRelation pmsAttrAttrgroupRelation)
    {
        return pmsAttrAttrGroupRelationMapper.updatePmsAttrAttrGroupRelation(pmsAttrAttrgroupRelation);
    }

    /**
     * 批量删除属性&属性分组关联
     *
     * @param ids 需要删除的属性&属性分组关联主键
     * @return 结果
     */
    @Override
    public int deletePmsAttrAttrGroupRelationByIds(Long[] ids)
    {
        return pmsAttrAttrGroupRelationMapper.deletePmsAttrAttrGroupRelationByIds(ids);
    }

    /**
     * 删除属性&属性分组关联信息
     *
     * @param id 属性&属性分组关联主键
     * @return 结果
     */
    @Override
    public int deletePmsAttrAttrGroupRelationById(Long id)
    {
        return pmsAttrAttrGroupRelationMapper.deletePmsAttrAttrGroupRelationById(id);
    }
}
